package com.waves.search.dto;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.querydsl.QPageRequest;

import javax.validation.constraints.NotNull;

/**
 * @author Eden
 * @date 2024/10/12 21:12
 **/
@Setter
@Getter
public class EsSearchDTO extends QPageRequest {

    /**
     * 1-人员
     * 2-任务
     */
    @NotNull(message = "搜索类型不能为空")
    private Integer type;

    /**
     * 搜索关键字
     */
    private String keyword;

    public EsSearchDTO(int page, int size) {
        super(page, size);
    }
}



